
#ifndef CONTANTS_H
#define CONTANTS_H

#include <string>

using namespace std;

const string defaultConfigFile = "bbserv.conf";
const string defaultBbFile = "bb.db";

// Default configuration options.
const int defaultMaxThreads = 8;
const int defaultThreadIncrement = 2;
const int defaultBbPort = 8000;
const int defaultReplicaPort = 9000;
const string defaultLogFile = "bbserv.log";

const int monitorThreadInterval = 10;

// Value in milliseconds of the timeout of the polling function in each client thread.
const int pollTimeout = 50;

const string defaultUserName = "nobody";

const int maxMessageLength = 1024;
const int replicaTimeout = 15;
const int replicaMaxRetries = 2;
const int replicaMaxSequence = 100;

#endif
